﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace WpfTwitterClient.Modules.Status.Views.Status
{
    public class StatusPresentationModel : IStatusPresentationModel, INotifyPropertyChanged
    {
        private string _statusMessage;

        public StatusPresentationModel()
        {
            
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(property));
        }

        public string StatusMessage
        {
            get { return _statusMessage; }
            set
            {
                if(_statusMessage == value)
                    return;

                _statusMessage = value;
                OnPropertyChanged("StatusMessage");
            }
        }
    }
}
